export function queryByAttr({
    field,
    keyword,
    service,
    callback
}) {
    var queryStruct = new Zondy.Service.QueryFeatureStruct();
    //是否包含几何图形信息
    queryStruct.IncludeGeometry = true;
    //是否包含属性信息
    queryStruct.IncludeAttribute = true;
    //是否包含图形显示参数
    queryStruct.IncludeWebGraphic = false;
    //实例化查询参数对象
    var queryParam = new Zondy.Service.QueryParameter({
        resultFormat: "json",
        struct: queryStruct
    });
    queryParam.where = `${field} like '%${keyword}%'`;
    //设置查询分页号
    queryParam.pageIndex = 0;
    //设置查询要素数目
    queryParam.recordNumber = 10000;
    //实例化地图文档查询服务对象
    var queryService = new Zondy.Service.QueryDocFeature(queryParam, service.name, service.layerId, {

    });
    //执行查询操作，querySuccess为查询回调函数
    queryService.query(callback);
}